import service from "../../utils/request";
// 查询全部数据
export function findAllWorker(payload = {}) {
    return service({
        url: '/worker/findAllWorker',
        method: 'get',
        params: payload
    })
} 

export function findAllWorkerByWorkerName(payload = {}) {
    return service({
        url: '/worker/findAllWorkerByWorkerName',
        method: 'get',
        params: payload
    })
} 
export function findAllWorkerByState(payload = {}) {
    return service({
        url: '/worker/findAllWorkerByState',
        method: 'get',
        params: payload
    })
} 
export function addWorker(payload = {}) {
    return service({
        url: '/worker/addWorker',
        method: 'post',
        data: payload
    })
} 
